package cn.lili.modules.promotion.client;

import cn.lili.modules.constant.ServiceConstant;
import cn.lili.modules.promotion.entity.dto.CallbackBlindboxDTO;
import cn.lili.modules.promotion.fallback.BlindboxCountClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(path = "${server.servlet.context-path}", name = ServiceConstant.PROMOTION_SERVICE, contextId = "blindbox-count-activity", fallback = BlindboxCountClientFallback.class)
public interface BlindboxCountClient {

    /**
     * 下单后更新盲盒统计
     * */
    @PostMapping("/callbackBlindbox")
    Boolean callbackBlindbox(@RequestBody CallbackBlindboxDTO callbackBlindboxDTO);
}
